<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@include file="/common/common.jsp"%>
<%@include file="/common/skins/skin0/component.jsp" %>
<h:css href="/css/style1/style-custom.css"/>
<%--
- Author(s): pengweiling
- Date: 2012-10-05 02:22:57
- Description:
--%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>
      编码规则录入
    </title>
  </head>
  <body>
    <e:datasource name="syscoderule" type="entity" path="com.hms.sysfoundation.dataset.SysCoderule" />
    <h:form name="data_form" action="com.hms.sysfoundation.SysCoderuleMaintain.flow" method="post" onsubmit="return checkForm(this);">
      <l:equal property="_eosLastAccessAction" targetValue="update">
        <input type="hidden" name="_eosFlowAction" value="updateSubmit" >
      </l:equal>
      <l:equal property="_eosLastAccessAction" targetValue="insert">
        <input type="hidden" name="_eosFlowAction" value="insertSubmit" >
      </l:equal>
      <h:hiddendata property="criteria" />
      <h:hidden property="page/begin"/>
      <h:hidden property="page/length"/>
      <h:hidden property="page/isCount"/>
      <dataform id= "7b720343-5fbc-46d1-883c-b30245d80856">
          <table align="center" border="0" width="100%" class="form_table">
            <tr>
              <td class="form_label">
                规则编码
              </td>
              <td colspan="1">
                <h:text property="syscoderule/ruleid"/><font style="color:red">*</font>
              </td>
            </tr>          
            <tr>
              <td class="form_label">
                规则名称
              </td>
              <td colspan="1">
                <h:text property="syscoderule/rulename"  validateAttr="maxLength=100;message=编码规则必填长度需小于100;allowNull=false"/><font style="color:red">*</font>
              </td>
            </tr>
            <tr>              
              <td class="form_label">
                前缀
              </td>
              <td colspan="1">
                <h:text property="syscoderule/prefix" validateAttr="maxLength=4;type=letter;message=前缀必须是英文字符长度必须小于等于4;allowNull=true"/>
              </td>
            </tr>
            <tr>
              <td class="form_label">
                后缀
              </td>
              <td colspan="1">
                <h:text property="syscoderule/suffix" validateAttr="maxLength=4;type=letter;message=后缀必须是英文字符长度必须小于等于4;allowNull=true"/>
              </td>
            </tr>
            <tr>              
              <td class="form_label">
                日期格式
              </td>
              <td colspan="1">
                <h:select property="syscoderule/cycleseg">
                  <option value="YYYYMMDD">yyyymmdd</option>
                  <option value="YYMMDD">yymmdd</option>
                  <option value="YYYYMM">四位年份两位月份((yyyymm)</option>
                  <option value="YYMM">两位年份两位月份(yymm)</option>
                  <option value="YYYY">四位年份(yyyy)</option>
                  <option value="YY">两位年份(yy)</option>
                  <option value="NONE">不启用日期</option>
                </h:select>
              </td>
            </tr>
            <tr>
              <td class="form_label">
                循环方式
              </td>
              <td colspan="1">
                <h:select property="syscoderule/cycletype">
                  <option value="Y">按年</option>
                  <option value="M">按月</option>
                  <option value="D">按天</option>
                  <option value="N">不循环</option>
                </h:select>              
              </td>
            </tr>
            <tr>              
              <td class="form_label">
                序号名称
              </td>
              <td colspan="1">
                <h:text property="syscoderule/seqseg" validateAttr="maxLength=20;type=letter;message=序号编码为英文，必填，长度需小于等于20;allowNull=false"/>
              </td>
            </tr>
            <tr>
              <td class="form_label">
                序号长度
              </td>
              <td colspan="1">
                <h:text property="syscoderule/seqlength" validateAttr="minValue=1;maxValue=10;type=naturalNumber;message=序号长度必须介于1~10之间;allowNull=false"/><font style="color:red">*</font>
              </td>
            </tr>
            <tr>              
              <td class="form_label">
                是否自动填充
              </td>
              <td colspan="1">
                <h:switchCheckbox property="syscoderule/paddingsymbol" checkedValue="Y" uncheckedValue="N"/>
              </td>
            </tr>
            <tr>
              <td class="form_label">
                最近产生日期
              </td>
              <td colspan="1">
                <b:write property="syscoderule/lastgentime" formatPattern="yyyy-MM-dd HH:mm:ss"/>
              </td>
            </tr>
            <tr class="form_bottom">
              <td colspan="4">
                <input type="submit" value="保存" class="button">
                <input type="button" value="返回" onclick="javascript:history.go(-1);" class="button">
              </td>
            </tr>
          </table>
      </dataform>
    </h:form>
  </body>
</html>
